﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        x:Class="ComicViewer.MainWindow"    
        MinHeight="300"
        MinWidth="400"
        Title="WCR | Web-Comic Reader" Height="500" Width="725" Icon="WcrIcon.ico">
    <Grid x:Name="grdMain">
        <Grid.RowDefinitions>
            <RowDefinition x:Name="tRowRibbonArea" Height="118"/>
            <RowDefinition x:Name="trowContentArea"/>
        </Grid.RowDefinitions>
        <Ribbon x:Name="ribMain" UseLayoutRounding="False" VerticalAlignment="Top" d:LayoutOverrides="GridBox, Margin" Panel.ZIndex="99" Height="138" Margin="0,-21,0,0">
            <Ribbon.ApplicationMenu>
                <RibbonApplicationMenu SmallImageSource="Grafics/YellowDummy.ico">
                    <RibbonApplicationMenuItem Header="Test"/>
                </RibbonApplicationMenu>
            </Ribbon.ApplicationMenu>

            <RibbonTab x:Name="rtabStart" Header="home / start" IsSelected="True">
                <RibbonGroup x:Name="rgrpStart_General" Header="general" LargeImageSource="Grafics/YellowDummy.ico" SmallImageSource="Grafics/YellowDummy.ico">
                    <RibbonSplitButton x:Name="rsbtnRead" Label="read" LargeImageSource="RibbonIcons/Read_32.png" SmallImageSource="RibbonIcons/Read_16.png">
                        <RibbonMenuItem Header="my favorite" />
                        <RibbonSeparator/>
                        <RibbonMenuItem Header="select from list" />
                    </RibbonSplitButton>

                    <RibbonSplitButton x:Name="rsbtnSync" Label="sync" SmallImageSource="RibbonIcons/Sync_16.png" LargeImageSource="RibbonIcons/Sync_32.png">
                        <RibbonMenuItem Header="all comics" />
                        <RibbonSeparator/>
                        <RibbonMenuItem Header="select from list" />
                    </RibbonSplitButton>

                </RibbonGroup>
                <RibbonGroup x:Name="rgrpStart_Viewer" Header="viewer" LargeImageSource="Grafics/YellowDummy.ico" SmallImageSource="Grafics/YellowDummy.ico">
                    <RibbonSplitButton x:Name="rsbtnJump" Label="jump" LargeImageSource="RibbonIcons/Jump_32.png" SmallImageSource="RibbonIcons/Jump_16.png">
                        <RibbonMenuItem Header="previous page" />
                        <RibbonMenuItem Header="next page" />
                        <RibbonSeparator/>
                        <RibbonMenuItem Header="overview (index)" />
                        <RibbonSeparator/>
                        <RibbonMenuItem Header="first page" />
                        <RibbonMenuItem Header="last page" />
                        <RibbonSeparator/>
                        <RibbonMenuItem Header="start of chapter" />
                        <RibbonSeparator/>
                        <RibbonMenuItem Header="previous chapter" />
                        <RibbonMenuItem Header="next chapter" />
                        <RibbonSeparator/>
                        <RibbonMenuItem Header="first chapter" />
                        <RibbonMenuItem Header="last chapter" />
                    </RibbonSplitButton>
                    
                    <RibbonToggleButton x:Name="rtbtnShowControls" Label="show controls" LargeImageSource="RibbonIcons/ShowNavControls_32.png" SmallImageSource="RibbonIcons/ShowNavControls_16.png" Click="rtbtnShowControls_Click"></RibbonToggleButton>
                </RibbonGroup>
                <RibbonGroup x:Name="rgrpStart_InputMode" Header="input mode" LargeImageSource="Grafics/YellowDummy.ico" SmallImageSource="Grafics/YellowDummy.ico">
                    <RibbonRadioButton x:Name="rrbtnPanImageSingleTouch" Label="browse comic" LargeImageSource="RibbonIcons/Browse_32.png" SmallImageSource="RibbonIcons/Browse_16.png" IsChecked="True" Checked="rrbtnPanImageSingleTouch_Checked"/>
                    <RibbonRadioButton x:Name="rrbtnPanImageMultiTouch" Label="page touch" LargeImageSource="RibbonIcons/PageTouch_32.png" SmallImageSource="RibbonIcons/PageTouch_16.png" Checked="rrbtnPanImageMultiTouch_Checked"/>
                </RibbonGroup>

                <RibbonGroup x:Name="rgrpStart_BrowseComic" Header="browse comic" LargeImageSource="Grafics/YellowDummy.ico" SmallImageSource="Grafics/YellowDummy.ico">

                    <RibbonButton x:Name="rbtnZoomIn" Label="zoom in" LargeImageSource="RibbonIcons/ZoomIn_32.png" SmallImageSource="RibbonIcons/ZoomIn_16.png" Click="rbtnZoomIn_Click"></RibbonButton>
                    <RibbonButton x:Name="rbtnZoomOut" Label="zoom out" LargeImageSource="RibbonIcons/ZoomOut_32.png" SmallImageSource="RibbonIcons/ZoomOut_16.png" Click="rbtnZoomOut_Click"></RibbonButton>
                    <RibbonButton x:Name="rbtnZoomReset" Label="reset zoom" LargeImageSource="RibbonIcons/ZoomReset_32.png" SmallImageSource="RibbonIcons/ZoomReset_16.png" Click="rbtnZoomReset_Click"></RibbonButton>

                    <RibbonRadioButton x:Name="rrbtnWheelZoom" Label="wheel zoom" LargeImageSource="RibbonIcons/WheelZoom_32.png" SmallImageSource="RibbonIcons/WheelZoom_16.png" IsChecked="True" Checked="rrbtnWheelZoom_Checked" KeyTip=""></RibbonRadioButton>
                    <RibbonRadioButton x:Name="rrbtnWheelScroll" Label="wheel scroll" LargeImageSource="RibbonIcons/WheelScroll_32.png" SmallImageSource="RibbonIcons/WheelScroll_16.png" Checked="rrbtnWheelScroll_Checked"></RibbonRadioButton>
                    
                    
                    <!-- 
                    Zoom: +, - and reset
                    MouseWheel-Mode (zoom or scroll)
                    
                    -->
                </RibbonGroup>
                <RibbonGroup x:Name="rgrpStart_PageTouch" Header="page touch" LargeImageSource="Grafics/YellowDummy.ico" SmallImageSource="Grafics/YellowDummy.ico">
                    <RibbonCheckBox x:Name="rchkZoomImage" Label="zoom" LargeImageSource="RibbonIcons/TouchZoom_32.png" SmallImageSource="RibbonIcons/TouchZoom_16.png" IsChecked="True" Click="rchkZoomImage_Click"/>
                    <RibbonCheckBox x:Name="rchkRotateImage" Label="rotate" LargeImageSource="RibbonIcons/Rotate_32.png" SmallImageSource="RibbonIcons/Rotate_16.png" Click="rchkRotateImage_Click"/>
                </RibbonGroup>
            </RibbonTab>

            <RibbonTab x:Name="rtabSettings" Header="settings">
                <RibbonGroup x:Name="rgrpSettings_MyComics" Header="comic" LargeImageSource="Grafics/YellowDummy.ico" SmallImageSource="Grafics/YellowDummy.ico">
                    <RibbonButton x:Name="rbtnComicSettings" Label="settings" LargeImageSource="Grafics/YellowDummy.ico" SmallImageSource="Grafics/YellowDummy.ico"/>
                    <RibbonButton x:Name="rbtnComicAbout" Label="about" LargeImageSource="Grafics/YellowDummy.ico" SmallImageSource="Grafics/YellowDummy.ico"/>
                </RibbonGroup>
                <RibbonGroup x:Name="rgrpSettings_Application" Header="application" LargeImageSource="Grafics/YellowDummy.ico" SmallImageSource="Grafics/YellowDummy.ico">
                    <RibbonButton x:Name="rbtnAppSettings" Label="settings" LargeImageSource="Grafics/YellowDummy.ico" SmallImageSource="Grafics/YellowDummy.ico"/>
                    <RibbonButton x:Name="rbtnAppAbout" Label="about" LargeImageSource="Grafics/YellowDummy.ico" SmallImageSource="Grafics/YellowDummy.ico"/>
                </RibbonGroup>
            </RibbonTab>
        </Ribbon>

    </Grid>
</Window>